package mapsObjects;
import java.awt.Graphics;

import base.Game;

abstract public class ABaseObject {
	private int xPos = 0;
	private int yPos = 0;
	private int height = Game.DEFAULT_BIG_ELEMENT_SIZE;
	private int width = Game.DEFAULT_BIG_ELEMENT_SIZE;
	private int life = 1;
	
	abstract public void draw(Graphics g);
		
	public ABaseObject(int _x, int _y, int _width, int _height)
	{
		setXPos(_x);
		setYPos(_y);
		setWidth(_width);
		setHeight(_height);
	}
	
	public int getXPos()
	{
		return xPos;
	}
	
	public int getYPos()
	{
		return yPos;
	} 
	
	public int getHeight()
	{
		return height;
	}
	
	public int getWidth()
	{
		return width;
	}	
	
	public void setXPos(int _xPos)
	{
		xPos = _xPos;
	}
	
	public void setYPos(int _yPos)
	{
		yPos = _yPos;
	} 
	
	public void setHeight(int _height)
	{
		height = _height;
	}
	
	public void setWidth(int _width)
	{
		width = _width;
	}
	
	public int getLife()
	{
		return life;
	}	
	
	public void setLife(int _life)
	{
		life = _life;
	}
}